<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$

return [
    'url_route_on' => true,
//    'log'          => [
//        'type' => 'trace', // 支持 socket trace file
//    ],

    /* 默认模块和控制器 */
    'default_module' => 'home',
    'app_debug' => false,

    // 关闭Trace调试
    'app_trace' => false,

    // 错误显示信息,非调试模式有效
    'error_message' => '页面错误！请稍后再试～',

    // 显示错误信息
    'show_error_msg' => false,

    // 异常处理handle类 留空使用 \think\exception\Handle
    'exception_handle' => 'app\common\exception\SecureExceptionHandler',

    // 日志设置
    'log' => [
        // 日志记录方式，内置 file socket 支持扩展
        'type'  => 'File',
        // 日志保存目录
        'path'  => LOG_PATH,
        // 日志记录级别
        'level' => ['error', 'critical', 'alert', 'emergency'],
        // 单文件日志写入
        'single' => false,
        // 独立日志级别
        'apart_level' => ['error', 'critical', 'alert', 'emergency'],
        // 最大日志文件数量
        'max_files' => 30,
    ],
    //
//    // 防止XSS过滤
//    'default_filter' => 'htmlspecialchars,strip_tags',
//
// 开启请求安全过滤
    'request' => [
        'filter_param'  => true,
    ],


    /* URL配置 */
    'base_url'=>'',
    'parse_str'=>[
        '__ROOT__' => '/',
        '__STATIC__' => '/static',
        '__ADMIN__' => '/admin',
        '__HOME__' => '/home',
    ],

    /* UC用户中心配置 */
    'uc_auth_key' => '(.t!)=JTb_OPCkrD:-i"QEz6KLGq5glnf^[{p;je',

    /*组织架构 */
    'book' => array(
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => 'OANT5a9nW1tRoC6ZMCO5h8Kv-BUDKbL4rCVCEY0Qbzg',
        'agentid' => 1000002
    ),

    /*文件上传下达*/
    'news' => array(
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => '1zQbWUeAiUvCTkOKVamERisREZTFfVkoaQslzCO1eOU',
        'agentid' => 1000003
    ),
    /*资源中心*/
    'file' => array(
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => 'DDwkNAits75I3ttrYTMSpFLQfoYGIWAWAkdjSJsAUgI',
        'agentid' => 1000004
    ),
    /*考勤打卡*/
    'punch' => array(
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => 'ZGzQyR5pwMwDkTU5xuxG8jPGmqjrLvLrrR-SJJhAfJw',
        'agentid' => 1000005
    ),
    /*党群建设*/
    'party' => array(
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => 'm-_04TO7yZeIRT6-5keK_3kW3NXtUcQ0ayctdwRBGTU',
        'agentid' => 1000006
    ),
    /*在线审批*/
    'approval' => array(
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => 'q7sVAf-jgmcMkMnEDAwylIkZQmyZOARBAw6tNYEUo_Y',
        'agentid' => 1000007
    ),
    /*个人中心*/
    'user' => array(
        'login' => 'https://sysw.zhamengtec.com/home/index/login',
        'appid' => 'ww23fc5fb330762947',
        'appsecret' => 'OwlGbSAgtKEYxJNdN8xY7XRH09VTXhp9rGvSMi2LOnw',
        'agentid' => 1000008
    ),


    /*云片apikey*/
    'sms_apikey' => 'ab729e06fff29f7070f8832621d8aefc',

    'version' => '2.0.3'
    
];
